package com.fzy.designpattern.templatemethod;

public abstract class DinnerTemplate {

    private void tuangou() {
        System.out.println("团购");
    }

    abstract void haveDinner();

    private void pingjia() {

        System.out.println("评价");
    }

    public void process(){
        tuangou();
        haveDinner();
        pingjia();
    }

}

